﻿
/**********************  此代码是由代码生成器生成，生成时间： 2012/10/17 16:40:00  ************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.Data;

namespace CRM.Entity
{
    [DataContract]
    public partial class News_Detail:BaseEntity
    {
        public News_Detail()
        {

        }

        public News_Detail(DataRow row)
        {
            if (row["news_id"] != null && row["news_id"].ToString() != "")
            {
                this.news_id =Convert.ToInt64(row["news_id"]);
            } 
            if (row["title"] != null && row["title"].ToString() != "")
            {
                this.title =Convert.ToString(row["title"]);
            } 
            if (row["content"] != null && row["content"].ToString() != "")
            {
                this.content =Convert.ToString(row["content"]);
            } 
            if (row["disable"] != null && row["disable"].ToString() != "")
            {
                this.disable =Convert.ToBoolean(row["disable"]);
            } 
            if (row["create_time"] != null && row["create_time"].ToString() != "")
            {
                this.create_time =Convert.ToDateTime(row["create_time"]);
            } 
            if (row["last_modify_time"] != null && row["last_modify_time"].ToString() != "")
            {
                this.last_modify_time =Convert.ToDateTime(row["last_modify_time"]);
            } 
        }

       /**********************************  News_id ************************************************/
       Int64 _news_id;
       
        [DataMember]
        public Int64 news_id
        {
          get { return _news_id; }
          set {
                _news_id = value;
                OnPropertyChanged("news_id");
            }
        }
       /**********************************  Title ************************************************/
       String _title;
       
        [DataMember]
        public String title
        {
          get { return _title; }
          set {
                _title = value;
                OnPropertyChanged("title");
            }
        }
       /**********************************  Content ************************************************/
       String _content;
       
        [DataMember]
        public String content
        {
          get { return _content; }
          set {
                _content = value;
                OnPropertyChanged("content");
            }
        }
       /**********************************  Disable ************************************************/
       Boolean _disable;
       
        [DataMember]
        public Boolean disable
        {
          get { return _disable; }
          set {
                _disable = value;
                OnPropertyChanged("disable");
            }
        }
       /**********************************  Create_time ************************************************/
       DateTime _create_time;
       
        [DataMember]
        public DateTime create_time
        {
          get { return _create_time; }
          set {
                _create_time = value;
                OnPropertyChanged("create_time");
            }
        }
       /**********************************  Last_modify_time ************************************************/
       DateTime _last_modify_time;
       
        [DataMember]
        public DateTime last_modify_time
        {
          get { return _last_modify_time; }
          set {
                _last_modify_time = value;
                OnPropertyChanged("last_modify_time");
            }
        }
    }
}
